#ifndef _WEB_H
#define _WEB_H
#include "IPlugin.h"
enum REQUEST_TYPE {
    GET,
    POST,
};
class IRequest {

};
class IResponse {

};
class IWeb : IPlugin {
public:
    virtual void onGet(IRequest *request,IResponse *response) = 0;
    virtual void onPost(IRequest *request,IResponse *response) = 0 ;
    virtual void on(REQUEST_TYPE type,std::function<void(IRequest*,IResponse*)> handle) = 0;
};

#endif // _WEB_H